package com.example.administrator.myapplication.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.view.menu.MenuView;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.administrator.myapplication.R;

import org.xutils.x;

public class VideoActivity extends AppCompatActivity {
ImageView imageVideo;
    TextView videoText;
    String videourl;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_video);
        imageVideo=(ImageView) findViewById(R.id.img_video);
        videoText=(TextView) findViewById(R.id.videoText);

        String url=getIntent().getStringExtra("imaurl");
        String des=getIntent().getStringExtra("des");
        videourl=getIntent().getStringExtra("video");
        Log.i("VideoActivity", "url"+url);
        x.image().bind(imageVideo,url);
        videoText.setText(des);
    }
    public  void  jumptvideo(View view){
        Intent intent=new Intent (this,Course_videoActivity.class);
        intent.putExtra("video",videourl);
        startActivity(intent);
    }
}
